﻿using Net;

namespace ActorSystem
{
    public class Skill01 : NormalSkillBase
    {
        public float Radius = 5f;

        public override void OnUseSkill()
        {
            for (int i = 0; i < Self.Scene.Actors.Count; i++)
            {
                var actor = Self.Scene.Actors[i];
                if (actor == Self)
                    continue;
                if (Vector3.Distance(actor.Position, Self.Position) <= Radius)
                {
                    ((NormalActor)actor).Damage(Self, Buff);
                }
            }
        }
    }
}